package com.lcf.system.vo.permission;

import com.lcf.framework.enums.PermissionEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lcf
 */
@Data
@NoArgsConstructor
public class PermissionChildrenVO {
    /**
     * 编码
     */
    @Schema(description = "编码")
    private String code;
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    public PermissionChildrenVO(PermissionEnum permissionEnum) {
        this.code = permissionEnum.name();
        this.name = permissionEnum.getName();
    }
}
